package com.lingyu.jsjx.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 课程改革对象 jsjx_course_reform
 *
 * @author ruoyi
 * @date 2025-08-08
 */
@Getter
@Setter
@TableName("jsjx_course_reform")
public class CourseReform extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 改革id
     */
    @TableId(value = "reform_id", type = IdType.AUTO)
    private Long reformId;

    /**
     * 课程名称
     */
    @Excel(name = "课程名称")
    private String courseName;

    /**
     * 课程性质
     */
    private Long courseNatureId;

    /**
     * 课程性质
     */
    @Excel(name = "课程性质")
    private String courseNatureName;

    /**
     * 课程学分
     */
    @Excel(name = "课程学分")
    private String courseCredit;

    /**
     * 课程学时
     */
    @Excel(name = "课程学时")
    private String courseHours;

    /**
     * 课程负责人
     */
    @Excel(name = "课程负责人")
    private String courseDirector;

    /**
     * 改革申报时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "改革申报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reformApplyDate;

    /**
     * 所属学院id
     */
    private Long collageId;

    /**
     * 所属学院name
     */
    @Excel(name = "所属学院")
    private String collageName;

    /**
     * 所属专业id
     */
    private Long majorId;

    /**
     * 所属专业name
     */
    @Excel(name = "所属专业")
    private String majorName;


    /**
     * 课程状态id
     */
    private Long clazzStatusId;

    /**
     * 课程状态name
     */
    @Excel(name = "课程状态")
    private String clazzStatusName;


    /**
     * 改革动因
     */
    @Excel(name = " 改革动因")
    private String reformReason;

    /**
     * 改革内容
     */
    @Excel(name = "改革内容")
    private String reformContent;

    /**
     * 教学设计文档
     */
    @Excel(name = "教学设计文档")
    private String designDocFileId;

    /**
     * 学生典型作业案例
     */
    @Excel(name = "学生典型作业案例")
    private String studentWorkFileId;

    @TableField(exist = false)
    private List<FileInfo> designDocFileList;

    @TableField(exist = false)
    private List<FileInfo> studentWorkFileList;



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("reformId", getReformId())
                .append("courseName", getCourseName())
                .append("courseNatureId", getCourseNatureId())
                .append("courseNatureName", getCourseNatureName())
                .append("courseCredit", getCourseCredit())
                .append("courseHours", getCourseHours())
                .append("courseDirector", getCourseDirector())
                .append("reformApplyDate", getReformApplyDate())
                .append("collageId", getCollageId())
                .append("collageName", getCollageName())
                .append("majorId", getMajorId())
                .append("majorName", getMajorName())
                .append("reformReason", getReformReason())
                .append("reformContent", getReformContent())
                .append("designDocFileId", getDesignDocFileId())
                .append("studentWorkFileId", getStudentWorkFileId())
                .append("createBy", getCreateBy())
                .append("createByName", getCreateByName())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateByName", getUpdateByName())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
